package interface_test.sharp;

/**
 * @author yuisama
 * @date 2022/04/28 19:53
 **/
public class Test {
    public static void main(String[] args) {
        fun(new Cycle());
        fun(new Square());
        fun(new Triangle());
//        fun(new Wu());
    }
    // 这个方法可以接受所有Sharp类，调用其print打印图形
    public static void fun(Sharp sharp) {
        sharp.print();
    }
}